#!/bin/sh
#
# BSD startup script for mind
# partly based on httpd startup script
#
# description: A web content filtering plugin for web \
#              proxies, developed to filter using lists of \
#              banned phrases, MIME types, filename \
#              extensions and PICS labelling.
# processname: mind


# See how we were called.

case "$1" in
start)
        [ -x @DGBINDIR@/mind ] && @DGBINDIR@/mind > /dev/null && echo -e ' mind\c'
        ;;
stop)
        @DGBINDIR@/mind -q
        [ -r /tmp/.mindipc ] && echo -e ' mind\c'
        rm -f /tmp/.mindipc
        ;;
restart)
        $0 stop
        $0 start
        ;;
*)
        echo "Usage: configure {start|stop|restart}" >&2
        ;;
esac
exit 0
